const { createStore } = require("redux");

// 定义一个reducer函数，接收一个state和一个action作为参数
function reducer() {
  // 返回初始状态
  return initialState;
}

const initialState = { name: "wsb", age: 18 };

const store = createStore(reducer);
module.exports = store;
console.log(store.getState());
